package com.shiqi.stock.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 *
 */
@RestController
@RequestMapping("stock")
public class StockController {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/reduce")
    public String reduce() {
        System.out.println("库存减1");
        return "success";
    }
}
